package com.common.sub.util;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtils {
	
	public static String ObjectToString(Object obj){
		
		ObjectMapper mapper = new ObjectMapper();
		String json ="";
		try {
			json = mapper.writeValueAsString(obj);
		} catch (JsonProcessingException e) {
			e.printStackTrace();
		}
		
		return json;
	}

}
